package com.yilin.platform.base_core.tools.bank;

import com.yilin.platform.base_core.application.BaseEntity;

/**
 * 某一用户拥有的银行卡
 * */
public class BankCard extends BaseEntity {
    public enum BankAccType {
        businessAcc(0, "对公账户"),
        personCard(1, "个人卡");
        public Integer index;
        public String name;
        BankAccType(Integer index, String name) {
            this.index = index;
            this.name = name;
        }
    }
    public enum BankCardType {
        none(0, "未知"),
        debitCard(1, "储蓄卡"),
        creditCard(2, "信用卡");
        public Integer index;
        public String name;
        BankCardType(Integer index, String name) {
            this.index = index;
            this.name = name;
        }
    }
    private String organizeId;//所属组织
    private String organizeName;//所属组织
    private String holdCardName;//持卡人名称 公司等于 组织名称，个体等于管理员真实姓名
    private Boolean defaultCard = false;//默认卡，付款时默认选中的卡，收款时默认收钱的卡

    private BankAccType bankAccType;//卡账户类型
    private BankCardType bankCardType;//卡类型
    private String bankName;//银行名称  【必填】
    private String bankShortName;//银行简称 【银行类型唯一标识】
    private String bankCode;//联行号  【开户行唯一标识。必填】

    private String phone;//绑定手机号

    private String bankAccNo;//帐号/卡号 【必填】
    private String openBankName;//开户支行名称 【必填】
    private String openBranch;//开户行行号

    private String openAddress;//开户行城市地址 【必填】
    private String cityCode;//开户行城市编码 【必填】

    private String openPermitNo;//开户许可证号
    private String bankBg;//背景
    private String bankIcon;//图标

    public Boolean getDefaultCard() {
        return defaultCard;
    }

    public void setDefaultCard(Boolean defaultCard) {
        this.defaultCard = defaultCard;
    }

    public String getOrganizeId() {
        return organizeId;
    }

    public void setOrganizeId(String organizeId) {
        this.organizeId = organizeId;
    }

    public String getOrganizeName() {
        return organizeName;
    }

    public void setOrganizeName(String organizeName) {
        this.organizeName = organizeName;
    }

    public String getHoldCardName() {
        return holdCardName;
    }

    public void setHoldCardName(String holdCardName) {
        this.holdCardName = holdCardName;
    }

    public BankAccType getBankAccType() {
        return bankAccType;
    }

    public void setBankAccType(BankAccType bankAccType) {
        this.bankAccType = bankAccType;
    }

    public BankCardType getBankCardType() {
        return bankCardType;
    }

    public void setBankCardType(BankCardType bankCardType) {
        this.bankCardType = bankCardType;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getBankShortName() {
        return bankShortName;
    }

    public void setBankShortName(String bankShortName) {
        this.bankShortName = bankShortName;
    }

    public String getBankCode() {
        return bankCode;
    }

    public void setBankCode(String bankCode) {
        this.bankCode = bankCode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getBankAccNo() {
        return bankAccNo;
    }

    public void setBankAccNo(String bankAccNo) {
        this.bankAccNo = bankAccNo;
    }

    public String getOpenBankName() {
        return openBankName;
    }

    public void setOpenBankName(String openBankName) {
        this.openBankName = openBankName;
    }

    public String getOpenBranch() {
        return openBranch;
    }

    public void setOpenBranch(String openBranch) {
        this.openBranch = openBranch;
    }

    public String getOpenAddress() {
        return openAddress;
    }

    public void setOpenAddress(String openAddress) {
        this.openAddress = openAddress;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getOpenPermitNo() {
        return openPermitNo;
    }

    public void setOpenPermitNo(String openPermitNo) {
        this.openPermitNo = openPermitNo;
    }

    public String getBankBg() {
        return bankBg;
    }

    public void setBankBg(String bankBg) {
        this.bankBg = bankBg;
    }

    public String getBankIcon() {
        return bankIcon;
    }

    public void setBankIcon(String bankIcon) {
        this.bankIcon = bankIcon;
    }
}
